/*
 * Timer.h
 *
 *  Created on: May 15, 2014
 *      Author: unicorn
 */

#ifndef TIMER_H_
#define TIMER_H_

class MyTimer {
private:
	// The clock time when the timer started
	int startTicks;

	// The ticks stored when the timer was paused
	int pausedTicks;

	// The timer status
	bool started;
	bool paused;
public:
	MyTimer();
	virtual ~MyTimer();

	void start();
	void stop();
	void pause();
	void unpause();

	int get_ticks();

	bool is_started();
	bool is_paused();
};

#endif /* TIMER_H_ */
